﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// PB_TransportBillDetail
    /// </summary>
    [Table("PB_TransportBillDetail")]
    public partial class PB_TransportBillDetail
    {

        /// <summary>
        /// 自然主键
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 主表Id(关联PB_TransportBill)
        /// </summary>
        public String ParentId { get; set; }

        /// <summary>
        /// 清单明细Id
        /// </summary>
        public String DesignDetailId { get; set; }

        /// <summary>
        /// 备货单明细Id
        /// </summary>
        public String PreparationNoteId { get; set; }

        /// <summary>
        /// 包Id
        /// </summary>
        public String PackId { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        public String MaterialId { get; set; }

        /// <summary>
        /// 装车人Id
        /// </summary>
        public String PretendCarUserId { get; set; }

        /// <summary>
        /// 装车人姓名
        /// </summary>
        public String PretendCarUserName { get; set; }

        /// <summary>
        /// 装车时间
        /// </summary>
        public DateTime? PretendCarTime { get; set; }

        /// <summary>
        /// 包的物料数量
        /// </summary>
        public Double? PackNums { get; set; }

        /// <summary>
        /// 收货数量
        /// </summary>
        public Double? ReceiptQuantity { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public String CreatorName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 包装车状态：0-已装车；1-已卸车
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 收货JSON
        /// </summary>
        public string ReceivingRemarks { get; set; }

        /// <summary>
        /// 成品Id
        /// </summary>
        public string JobId { get; set; }

        /// <summary>
        /// 是否是备货单已备物料： 0-否；1-是
        /// </summary>
        public Boolean? TrueOrFalse { get; set; }

        /// <summary>
        /// 是否处理异常：0-否；1-是
        /// </summary>
        public Boolean? IsHandle { get; set; }

    }

    /// <summary>
    /// 收货JSON MODEL
    /// </summary>
    public class ReceivingRemarksDTO
    {
        /// <summary>
        /// 卸车明细Id
        /// </summary>
        public string BillDetailId { get; set; }

        /// <summary>
        /// 项目Id
        /// </summary>
        public string ProjectId { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        public string MaterialId { get; set; }

        /// <summary>
        /// 收货人Id
        /// </summary>
        public string ReceivingUserId { get; set; }

        /// <summary>
        /// 收货人姓名
        /// </summary>
        public string ReceivingUserName { get; set; }

        /// <summary>
        /// 收货人姓名
        /// </summary>
        public DateTime? ReceivingTime { get; set; }

        /// <summary>
        /// 收货数量
        /// </summary>
        public Double? ReceivingNums { get; set; }


    }
}